import request from '@/utils/request'

// 查询原材料采购列表
export function listIntMaterial(query) {
  return request({
    url: '/internet/intMaterial/list',
    method: 'get',
    params: query
  })
}

// 查询原材料采购详细
export function getIntMaterial(id) {
  return request({
    url: '/internet/intMaterial/info/' + id,
    method: 'get'
  })
}

// 新增原材料采购
export function addIntMaterial(data) {
  return request({
    url: '/internet/intMaterial',
    method: 'post',
    data: data
  })
}

// 修改原材料采购
export function updateIntMaterial(data) {
  return request({
    url: '/internet/intMaterial',
    method: 'put',
    data: data
  })
}

// 删除原材料采购
export function delIntMaterial(id) {
  return request({
    url: '/internet/intMaterial/' + id,
    method: 'delete'
  })
}
